/*
 * @Description:
 * @Author: zekit
 * @Date: 2022-02-15 13:56:50
 * @LastEditors: zekit
 * @LastEditTime: 2022-02-19 12:43:43
 */
import request from '@/utils/request'

// 获取试卷列表
export function getPaperList(data) {
    return request({
        url: '/examination/questionManager/paper/list',
        method: 'post',
        data: data
    })
}

// 删除试卷
export function delPaperApi(data) {
    return request({
        url: '/examination/questionManager/paper/delete',
        method: 'post',
        data: data
    })
}

// 删除试卷的题目
export function delQuestion(data) {
    return request({
        url: '/examination/questionManager/question/delete',
        method: 'post',
        data: data
    })
}

// 上传接口
export function uploadPaper(data) {
    return request({
        url: '/examination/questionManager/paper/import',
        method: 'post',
        data: data
    })
}

// 单个文件上传
export function upload(data) {
    return request({
        url: '/system/file/upload?type=1',
        method: 'post',
        data: data
    })
}
